package com.diao.myhub.model.vo;

import lombok.Data;

import java.util.List;

@Data
public class CommentPageVO {
    private Long total;
    private Long current;
    private Long size;
    private Long totalComments;
    List<CommentVO> records;

    public static CommentPageVO of(Long current, Long size, Long total) {
        CommentPageVO commentPageVO = new CommentPageVO();
        commentPageVO.setCurrent(current);
        commentPageVO.setSize(size);
        commentPageVO.setTotal(total);
        return commentPageVO;
    }
}
